package com.example.ui_view;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import com.example.ui_view.model.Student;
import com.example.ui_view.model.user;

import java.util.ArrayList;
public class Test2Activity extends AppCompatActivity {
    TextView tv_test2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test2);
        tv_test2 = findViewById(R.id.tv_test2);
        Intent intent = getIntent();
        Bundle bundle = intent.getExtras();
        tv_test2.setText("姓名："+bundle.getString("et_name")+"    "+"学号："
                +bundle.getString("et_id")+"      "+"班级："+bundle.getString("et_class"));
        ArrayList<String> arrayList = bundle.getStringArrayList("arrlist_key");
        String[] string_arr = bundle.getStringArray("string_arr");
        user u = (user) bundle.getSerializable("user_key");
        ArrayList<Student> student =bundle.getParcelableArrayList("arrayList_Stu");
        for (String str: arrayList) {
            Log.v("data ","" + str);
        }
        for (String str_arr: arrayList) {
            Log.v("data ","" + str_arr);
        }
        for (Student str_arr: student) {
            Log.v("data ","" + student);
        }
        Log.v("data",""+u.toString());

    }
}
